﻿@using Journal.Common.Helpers
@using Journal.Common.Helpers.HtmlControls
@using Journal.Front.Resources
@model Journal.Front.Presentation.Models.StudyGroupModels.StudyGroupSelectModel
@{
    ViewBag.Title = "Select";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section scripts
{
    @Scripts.Render(Url.Content("~/Scripts/Journal/StudyGroup/Select.js"), Url.Content("~/Scripts/Journal/popup-Window.js"))
}
<div class="main grid-wrap">
    <div class="grid col-one-fifth mq2-col-one-quarter mq3-col-full studyRoom-container">
        @{ Html.RenderAction("GetStudyRoomMenu", "Menu"); }
    </div>
    <div class="grid col-three-quarters mq2-col-two-thirds mq3-col-full" id="studyRoom">
        <div id="study-group-button-panel">
            <button class="student-button popup-button" data-popup-url="@Url.Action("PopupAddStudent", "Student", new { groupId = Model.Id })">@HtmlControlTitles.AddStudent</button>
            <button class="student-button" data-popup-url="@Url.Action("PopupAddStudent", "Student")">Логины и пароли</button>
            <button class="student-button" data-popup-url="@Url.Action("PopupAddStudent", "Student")">Составить отчёт</button>
        </div>
        @Html.FormInputDropDown(Model.Items, new Dictionary<string, string>() { { "student-list-url", Url.Action("SelectPartial", "Student") } }, new { id = "studyGroupSelect", hidden = "true" })
    </div>
    <div class="grid col-three-quarters mq2-col-two-thirds mq3-col-full" id="updatedContainer">
        @if (!Model.Items.Any())
        {
            <b>@Messages.StudentGroupNotFound</b>
        }
    </div>
    <div id="popup-box" class="popup add-student-popup">
    </div>
</div>
